package com.three.crm.adapter;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.three.crm.R;
import com.three.crm.bean.CompanyBean;

import java.util.List;

public class LocationAdapter extends BaseQuickAdapter<CompanyBean, BaseViewHolder> {

    public LocationAdapter(@Nullable List<CompanyBean> data) {
        super(R.layout.item_list_location,data);
    }

    public LocationAdapter() {
        super(R.layout.item_list_location);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, CompanyBean item) {
        helper.setText(R.id.tv_company,"" + item.getAddress())
                .setText(R.id.tv_province, "" + item.getProvince() + item.getCity() + item.getArea());
    }
}
